package com.hangwei.paperless;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;

import com.hangwei.paperless.adapter.MainRepairAdapter;
import com.hangwei.paperless.model.bean.DRSInfo;
import com.hangwei.paperless.model.bean.RecordListBean;
import com.twelve.all.base.BaseActivity;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 张龙臣 on 2020/12/10.
 */

public class ModifyRoutingActivity extends BaseActivity {

    private MainRepairAdapter mAdapter;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_modify_routing);
        RecyclerView recyclerView = findViewById(R.id.recyclerView);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        mAdapter = new MainRepairAdapter(null) {
            @Override
            protected void onNaCurrent(String id) {

            }

            @Override
            protected void seal(RecordListBean item, int stampRole, String resultVal) {

            }

            @Override
            protected void showBigPic(ArrayList<String> data, int position) {

            }

            @Override
            protected void onSaveDRS(List<DRSInfo.DrsBean> drsList) {

            }
        };
        recyclerView.setAdapter(mAdapter);
        mAdapter.addHeaderView(getHeaderView());
    }

    private View getHeaderView() {
        View inflate = LayoutInflater.from(this).inflate(R.layout.header_modify_routing, null);

        return inflate;
    }
}
